#include <iostream>
using namespace std;

int main() {
    int t;
    cin >> t;
    while (t-- > 0) {
        int n, a = 0, b = 0, tmp;
        cin >> n;
        while (n-- > 0) {
            cin >> tmp;
            a += 2 - tmp;
            b += tmp - 1;
        }
        bool succ = false;
        if ((a + 2 * b) % 2 == 0) {
            for (int i = 0; i <= a; i++)
                for (int j = 0; j <= b; j++)
                    if (2 * i + 4 * j == a + 2 * b)
                        succ = true;
        }
        cout << (succ ? "YES" : "NO") << endl;
    }
    return 0;
}